<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- QQ登录 -->
<meta property="qc:admins" content="61701556566401633636375" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<neq name="ts['site']['page_title']" value="">
    {$ts['site']['page_title']} <neq name="ts['app']['app_alias']" value="">- {$ts['app']['app_alias']} </neq>- {$ts['site']['site_name']}
<else/>
    {$ts['site']['site_name']} <neq name="ts['site']['site_slogan']" value=""> - {$ts['site']['site_slogan']}</neq>
</neq>    
</title>
<link rel="shortcut icon" href="__THEME__/favicon.ico" />
<meta name="keywords" content="{$ts['site']['site_header_keywords']}" />
<meta name="description" content="{$ts['site']['site_header_description']}" />
<script>
	var _UID_   = '{$uid}';
	var _MID_   = '{$mid}';
	var _ROOT_  = '__ROOT__';
	var _THEME_ = '__THEME__';
	var _PUBLIC_ = '__PUBLIC__';
	var _LENGTH_ = {$GLOBALS['ts']['site']['length']};
	var $CONFIG = {};
	$CONFIG['uid'] = '{$uid}';
	$CONFIG['mid'] = '{$mid}';
	$CONFIG['root_path'] = '__ROOT__';
	$CONFIG['theme_path'] = '__THEME__';
	$CONFIG['public_path'] = '__PUBLIC__';
	$CONFIG['weibo_length'] = {$GLOBALS['ts']['site']['length']};
</script>
<!-- 全局风格CSS -->
<link href="__THEME__/main.css?20110429" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/js/tbox/box.css" rel="stylesheet" type="text/css" />
<!-- 核心JS加载 -->
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/tbox/box.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/scrolltopcontrol.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/weibo.js"></script>
<script src="__PUBLIC__/js/jquery.jgrow.min.js"></script>
<script src="__PUBLIC__/js/jquery.isotope.min.js"></script>


<!-- 编辑器样式文件 -->
<link href="__PUBLIC__/js/editor/editor/theme/base-min.css" rel="stylesheet"/>
<!--[if lt IE 8]><!-->
<link href="__PUBLIC__/js/editor/editor/theme/cool/editor-pkg-sprite-min.css" rel="stylesheet"/>
<!--<![endif]-->
<!--[if gte IE 8]><!-->
<link href="__PUBLIC__/js/editor/editor/theme/cool/editor-pkg-min-datauri.css" rel="stylesheet"/>
<!--<![endif]-->

{:Addons::hook('public_head')}
</head>

<body class="page_home">
<div class="wrap">
<session name="userInfo">
<!--顶部导航-->
<div class="header_holder">
 <div class="header">
 <div class="logo_holder">
    <div class="logo"><a href="{:U('home/Index')}" ><neq name="ts['site']['site_logo']" value=""><img src="{$ts['site']['site_logo']}" /><else /><img src="__THEME__/images/logo.png" /></neq></a></div>
    <form action="{:U('home/user/search')}" id="quick_search_form" method="post">
    <div class="soso br3"><label id="_header_search_label" style="display: block;" onclick="$(this).hide();$('#_header_search_text').focus();">搜名字/标签/微博</label><input type="text" class="so_text" value="" name="k" id="_header_search_text" onblur="if($(this).val()=='') $('#_header_search_label').show();"/><input name="" type="button" onclick="$('#quick_search_form').submit()" class="so_btn hand br3"/></div>
	<script>
	if($('#_header_search_text').val()=='')
		$('#_header_search_label').show();
	else
		$('#_header_search_label').hide();
	</script>
</form>
    <div class="nav">
      <ul>
        <li><a href="{:U('home')}" class="fb14">首页</a></li>
		<li class="header_dropdown"><a href="{:U('home/Square/index')}" class="application">广场<span class="ico_arrow"></span></a>
          <div class="dropmenu">
                <dl class="square">
                <dd><a href="{:U('home/Square/top')}"><span class="ico_pub ico_pub_billboard"></span>风云榜</a></dd>
                <dd><a href="{:U('home/Square/star')}"><span class="ico_pub ico_pub_hall"></span>名人堂</a></dd>
                {:Addons::hook('header_square_tab', array('menu' => & $header_square_expend_menu))}
				<volist name="header_square_expend_menu" id="vo">
                	<dd><a href="{:U('home/Square/' . $vo['act'], $vo['param'])}"><span class="ico_pub ico_pub_{$vo['act']}"></span>{$vo['name']}</a></dd>  
				</volist>
                <!--
				<dd><a href="{:U('home/Square/blog')}"><span class="ico_pub ico_pub_journal"></span>日志</a></dd>
                <dd><a href="{:U('home/Square/photo')}"><span class="ico_pub ico_pub_album"></span>相册</a></dd>
                <dd><a href="{:U('home/Square/group')}"><span class="ico_pub ico_pub_group"></span>群组</a></dd>
				-->
            </dl>
          </div>
        </li>
        <php>if(!empty($my_group_list)){</php>
		<li class="header_dropdown"><a href="{:U('group/index/newIndex')}" class="application">群组<span class="ico_arrow"></span></a>
          <div class="dropmenu">
                <dl class="group">
                            <php>foreach($my_group_list as $key=>$value){</php>
                                <dd><a href="{:U('Group/group/index',array('gid'=>$value['id']))}">{$value['name']}</a></dd>
                            <php>}</php>
                </dl>
                <dl class="group_add">
                <dd>
                <php>if($moreGroup){</php><a href="{:U('group/SomeOne')}" class="right">更多»</a><php>}</php><a href="{:U('group/Index/add')}">创建群组</a> 
                </dd>
                </dl>
          </div>
        </li>
        <php>}</php>
        <li class="header_dropdown"><a href="{:U('home/Index/addapp')}" class="application">应用<span class="ico_arrow"></span></a>
          <div class="dropmenu">
            <dl class="app_list">
                <?php foreach ($ts['user_app'] as $_temp_type => $_temp_apps) { ?>
                <?php foreach ($_temp_apps as $_temp_app) { ?>
                    <dd>
                        <?php if($_temp_type == 'local_app' || $_temp_type == 'local_default_app') { ?>
                        <a href="<?php echo $_temp_app['app_entry'];?>" class="a14">
                            <img class="app_ico" src="<?php echo $_temp_app['icon_url'];?>" />
                            <?php echo $_temp_app['app_alias'];?>
                        </a>
                        <?php }else { ?>
                        <a href="__ROOT__/apps/myop/userapp.php?id=<?php echo $_temp_app['app_id'];?>" class="a14">
                            <img class="app_ico" src="http://appicon.manyou.com/icons/<?php echo $_temp_app['app_id'];?>" />
                            <?php echo $_temp_app['app_alias'];?>
                        </a>
                        <?php }?>
                    </dd>
                <?php } // end of foreach?>
                <?php } // end of foreach?>
                </dl>
                <dl class="app_list_add">
                <dd><a href="{:U('home/Index/addapp')}"><span class="ico_app_add"></span>添加更多应用</a></dd>
                </dl>
          </div>
        </li>
      </ul>
    </div>
</div>
	<!--个人信息区-->
	<ul class="person">
		<li>{:getUserSpace($mid,'fb14 username nocard','','',false)}</li>
		<li class="header_dropdown"><a href="{:U('home/message/index')}" class="application">消息<span class="ico_arrow"></span></a>
          <div class="dropmenu">
                <ul class="message_list_container message_list_new">
                </ul>
                <dl class="message">
					<dd><a href="{:U('home/message/index')}">查看私信<gt name="userCount['message']" value="0">({$userCount.message})</gt></a></dd> 
					<dd><a href="{:U('home/user/atme')}">查看@我<gt name="userCount['atme']" value="0">({$userCount.atme})</gt></a></dd> 
					<dd><a href="{:U('home/user/comments')}">查看评论<gt name="userCount['comment']" value="0">({$userCount.comment})</gt></a></dd> 
					<dd><a href="{:U('home/message/notify')}">系统通知<gt name="userCount['notify']" value="0">({$userCount.notify})</gt></a></dd> 
					<dd><a href="{:U('home/message/appmessage')}">应用消息<gt name="userCount['appmessage']" value="0">({$userCount.appmessage})</gt></a></dd> 
                </dl>
                <dl class="message_add">
                <dd><a href="javascript:ui.sendmessage(0)">发私信</a></dd>
                </dl>
          </div>
        </li>
		<li class="header_dropdown"><a href="{:U('home/Account')}" class="application">帐号<span class="ico_arrow"></span></a>
          <div class="dropmenu">
                <dl class="setup">
                <dd><a href="{:U('home/User/findfriend')}"><span class="ico_pub ico_pub_find"></span>找人</a></dd>
                <dd><a href="{:U('home/Account')}"><span class="ico_pub ico_pub_set"></span>设置</a></dd>
                <dd><a href="{:U('home/Account/invite')}"><span class="ico_pub ico_pub_invitation"></span>邀请</a></dd>
                <dd><a href="{:U('home/Account/weiboshare')}"><span class="ico_pub ico_pub_tool"></span>小工具</a></dd>
                <!--<dd><a href="{:U('home/Index/editapp')}"><span class="ico_pub ico_pub_skin"></span>更换皮肤</a></dd>-->
                <eq name="isSystemAdmin" value="TRUE"><dd><a href="{:U('admin/index/index')}">后台管理</a></dd></eq>
                </dl>
                <dl class="setup_add">
                <dd><a href="{:U('home/Public/logout')}"><span class="ico_pub ico_pub_signout"></span>退出</a></dd>
                </dl>
          </div>
        </li>
    </ul>
	<!--/个人信息区-->
    <div id="message_list_container" class="layer_massage_box" style="display:none;">
    	<ul class="message_list_container">
        </ul>
        <a href="javascript:void(0)" onclick="ui.closeCountList(this)" class="del"></a>
    </div>
  </div>
</div>
<!--/顶部导航-->
</session>

<nosession name="userInfo">
<div class="header_bg">
    <div class="header">
      <div class="logo"><a href="{:U('home')}">&nbsp;</a></div>
      <div id="indt" class="nav_sub br3">
        <p>
      	<eq name="ts['site']['site_anonymous_square']" value="1">
      	  <a href="{:U('home/Square')}">微博广场</a>&nbsp;|&nbsp;
      	</eq>
      	<a href="{:U('home/Public/register')}">注册</a>&nbsp;|&nbsp;
      	<a href="javascript:ui.quicklogin();">登录</a>
        <p>
      </div>
  </div>
</div>
</nosession>

<volist name="ts['ad']['header']" id="vo">
<div class="ad_header"><div class="ke-post">{$vo['content']}</div></div>
</volist>
<script>
$(document).ready(function(){
	$(".header_dropdown").hover(
		function(){ $(this).addClass("hover"); },
		function(){ $(this).removeClass("hover"); }
	);
	
	<php>if($mid > 0) {</php>
		ui.countNew();
		setInterval("ui.countNew()",100000);
	<php>}</php>
});
</script>

{* 注册引导 *}
<php>if(!$mid && APP_NAME.'/'.MODULE_NAME != 'home/Public'){</php>
<div class="content no_bg" style=" min-height:100px; margin-bottom:10px">
  <div  style="padding:10px 15px;">
    <div style="float:right; width:220px; text-align:center; padding-top:5px; font-size:14px"><a class="regbtn" title="立即注册" href="{:U('home/Public/register')}"> &nbsp;</a><br />
      有帐号？<a href="{:U('home/Public/login')}"><strong>马上登录</strong></a></div>
    <div style=" margin-right:250px;">
      <h2 class="f18px lh30 fB">欢迎来到{$ts['site']['site_name']}，赶紧注册吧！</h2>
      <p class="f14px cGray2">微博是一个大家表达真实自我的即时广播平台。赶紧开通微博，获得朋友、同事最新动态，通过网页、手机随时随地记录自己的点滴生活！</p>
    </div>
  </div>
</div>
<php>}</php>